package com.zhiyou100.serice.Impl;

import com.zhiyou100.mapper.SubjectMapper;
import com.zhiyou100.model.Subject;
import com.zhiyou100.serice.SubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SubjectServiceImpl implements SubjectService {
    @Autowired
    private SubjectMapper mapper;
    public List<Subject> findAll() {
        return mapper.findAll();
    }

    public Subject findById(Integer id) {
        return mapper.findById(id);
    }
}
